package load;

import io.netty.buffer.ByteBuf;

public class RtuTest implements TestInf {

  @Override
  public String doContext(Object obj) {
    ByteBuf byteBuf = (ByteBuf) obj;
    String yali = String.valueOf(byteBuf.readInt());
    String liusu = String.valueOf(byteBuf.readInt());
    String json = "{\"shuiwen\":\""+yali+"\",\"zonglaing\":\""+liusu+"\"}";
    return json;
  }
}
